
pkgname=cpio
pkgver=2.12
pkgrel=4
pkgdesc="A tool to copy files into or out of a cpio or tar archive"
arch=('x86_64')
license=('GPL')
url="http://www.gnu.org/software/cpio"
depends=('glibc')
source=("ftp://ftp.gnu.org/gnu/cpio/cpio-${pkgver}.tar.gz")
md5sums=('fc207561a86b63862eea4b8300313e86')

build() {
  cd ${pkgname}-${pkgver}
  
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd ${pkgname}-${pkgver}
  
  make DESTDIR=${pkgdir} install
  
  rm -rf ${pkgdir}/usr/libexec
  #tar provided
  rm -f ${pkgdir}/usr/share/man/man8/rmt.8
  rm $pkgdir/usr/share/info/dir
}

